//
//  SecondViewController.swift
//  TouchIdDemo
//
//  Created by 博广 on 2016/12/19.
//  Copyright © 2016年 博广. All rights reserved.
//

import UIKit

class SecondViewController: UIViewController {
    
    var msg:String?

    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.view.backgroundColor = UIColor.white
        
        let msgView = UILabel()
        msgView.font = UIFont.systemFont(ofSize: 20)
        msgView.textColor = UIColor.brown
        msgView.frame = CGRect(x: 0, y: 0, width: 200, height: 100)
        msgView.center = self.view.center
        msgView.textAlignment = .center
        if msg == nil {
            msg = "没有传值"
        }
        
        msgView.text = msg
    
        self.view.addSubview(msgView)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
